package com.example.sea.core.common.utils;

import org.apache.shiro.crypto.hash.SimpleHash;

/**
 * MD5加密工具类
 */
public class Md5Util {

    public static String getMd5(String password) {
        Object obj = new SimpleHash("MD5", password, null, 2048);
        return String.valueOf(obj);
    }

    public static void main(String[] args) {
        String password = getMd5("123456");
        System.out.println(password);
    }
}
